
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <float.h>
#include "RayTracer.h"
#include <process.h>

// command line arguments 
int main(int argc, char *argv[])
{ 
	char *input_file = "rabbit_1.txt";
	for (int i = 1; i < argc; i++) {
		if (!strcmp(argv[i],"-input")) {
			i++; assert (i < argc); 
			input_file = argv[i];
		} else {
			printf ("whoops error with command line argument %d: '%s'\n",i,argv[i]);
			assert(0);
		}
	}

 	if (input_file) {
 		RayTracer rt;
		rt.setScene( input_file );
		rt.render();
 	}
}